Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix authenticated media breaking in certain SDK scenarios #1188

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

MidhunSureshR
Copy link
Member

ServiceWorkerHandler supplies the access-token to the service worker when needed. We needed the session-id to do this. We took the session-id from navigation which is a bad idea since navigation segments may not exist when using hydrogen as an SDK.

@MidhunSureshR MidhunSureshR force-pushed the midhun/fix-audit-media-auth branch from 7d726ad to 2d4c909 Compare October 20, 2024 15:39
Reading from storage requires fetching the session-id from navigation
segment. This is not a good idea since there's no guarantee of such
segments existing when hydrogen is used as an SDK.
@MidhunSureshR MidhunSureshR force-pushed the midhun/fix-audit-media-auth branch from 2d4c909 to 4fe0f91 Compare October 20, 2024 15:44
@MidhunSureshR MidhunSureshR merged commit d3e3d5a into master Oct 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant